# -*- coding: utf-8 -*-
# @Time: 2021/8/20 9:41
# @File: arg-66.py
# @DESC:

def func1(digits):
    print(digits)
    lent = len(digits)
    carry = 0
    for i in range(lent):
        index = lent - i - 1
        val = digits[index] + carry
        if i == 0:
            val += 1
        digits[index] = val % 10
        if val == 10:
            carry = 1
        else:
            carry = 0

    if carry == 1:
        digits = [1] + digits

    return digits


digits = [9,9]
r = func1(digits)
print(r)
